
#include <iostream>

using namespace std;

class data_t
{
public:
    void init();
    void myprintf();
    bool isleap_year();

private:
    int year;
    int month;
    int day;
};

void data_t::init()
{
    cout<<"year  month  day"<<endl;
    cin>>year>>month>>day;
}

void data_t::myprintf()
{
    cout<<"year month day"<<endl;
    cout<<year<<":"<<month<<":"<<day<<endl;
}

bool data_t::isleap_year()
{
    if((year%4 == 0 && year%100 != 0) || (year%400 == 0))
        return true;
    else
        return false;
}

int main(void)
{
    data_t da;

    da.init();
    da.myprintf();

    if(da.isleap_year())
        cout<<"leap year..."<<endl;
    else
        cout<<"not leap year..."<<endl;

    return 0;
}

